//
//  YHOptionTitleTableViewPickerInfoCell.m
//  ScriptKill
//
//  Created by 林宁宁 on 2021/7/9.
//  Copyright © 2021 优智汇. All rights reserved.
//

#import "YHOptionTitleTableViewPickerInfoCell.h"
#import "UIFont+YH.h"

@implementation YHOptionTitleTableViewPickerInfoCell


-(void)yh_optionInit{
    
    self.cellInfoView = [UILabel new];
    self.cellInfoView.textAlignment = NSTextAlignmentLeft;
    self.cellInfoView.font = [UIFont yh_pfOfSize:14];
    self.cellInfoView.textColor = [UIColor yh_h2];
    self.cellInfoView.numberOfLines = 2;
    [self.cellOptionContentView addSubview:self.cellInfoView];
    
    [self.cellInfoView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.cellOptionContentView);
    }];
}

-(void)setInfo:(NSString *)info{
    _info = info;
    
    if(IsNull(info)){
        self.cellInfoView.textColor = [UIColor yh_hint];
        self.cellInfoView.text = NullShow(self.placeholder);
    }else{
        self.cellInfoView.textColor = [UIColor yh_h2];
        self.cellInfoView.text = info;
    }
}

@end
